Tips for increasing indexing performance.
Locales for indexing
custom preference,
or at the job step level, in the localesForIndexing
parameter.
When indexing a lot of locales, the size of indexing batches is increased (one record is generated per locale), which can lead to memory errors in the indexing jobs.
Reduce the number of locales or lower the chunk size if you encounter a java.lang.OutOfMemoryError: Java heap space
error.
A job can also become slow when dealing with a large number of locales.
In that case, a strategy is to split it in separate jobs, each one indexing a subset of locales.
This is achieved by using the localesForIndexing
job step parameter.
steptypes.json
, under "@type-id": "..."
> "chunk-size"
.
The products to be exported are broken down into chunks of this size, with multiple chunks executing in parallel.
To achieve the best performance, you can set this value higher if you have a large catalog with many products.
api.jsJSONStringLength
quota violation.
A quota warning will be issued, but the platform won’t prevent execution of the job because the quota is not currently enforced.java.lang.OutOfMemoryError: Java heap space
error, you need to lower the chunk size.AlgoliaProductInventoryExport_v2
and AlgoliaProductPriceExport_v2
, finish quickly compared to a full catalog export job, since they only export one relatively easily calculable attribute.
The list of attributes for partial update jobs can be extended, but this will increase job run times.
includedContent
to specify which types of content are indexed.indexOnlySearchables
to false, it’s advisable to review and specify both indexableAttributes
and ignoredAttributes
. This can help to minimize unnecessary indexing of content, such as style configurations, that do not need to be indexed.